import random

class Tenant(SimObject) :

	def __init__(self) :
		self.Vacant = 1
		self.MonthlyRent = 0
		self.RentPaid = Simulation.InitializeList()
		self.StartMonth = -1
		return self

	def Update(self):
		m = Simulation.CurrentMonth

		if not self.Vacant:
			self.DetermineVacancy()
			
		if self.Vacant:
			self.RentPaid[m] = 0
		else:
			self.RentPaid[m] = self.MonthlyRent

	def DetermineVacancy(self):
		if random.random() < Economy.VacancyRate :
			self.Vacancy = 1
		
		

